#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// PandoraFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion
using UnityEditor;
using UnityEngine;

namespace PandoraEditor.Window
{
    public class UIConfigCategory : ConfigCategory
    {
        public override void OnInit()
        {
            name = "UI配置";
        }

        public override void OnDrawAction()
        {
            UISetting setting = UserSetting.UISetting;
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("图集配置", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.path_atlas = EditorGUILayout.TextField("图集目录", setting.path_atlas);
                setting.path_tp = EditorGUILayout.TextField("TP目录", setting.path_tp);
                setting.path_temp = EditorGUILayout.TextField("临时目录", setting.path_temp);
                setting.path_atlas_asset = EditorGUILayout.TextField("图集Asset", setting.path_atlas_asset);
                setting.atlas_max_size = EditorGUILayout.TextField("图集最大尺寸", setting.atlas_max_size);
                EditorGUILayout.Space();
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("字体配置", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.path_bmfont_source = EditorGUILayout.TextField("BmFont源目录", setting.path_bmfont_source);
                setting.path_bmfont_target = EditorGUILayout.TextField("BmFont生成目录", setting.path_bmfont_target);
                EditorGUILayout.Space();
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("Shader配置", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.shader_normal = EditorGUILayout.TextField("Shader(normal)", setting.shader_normal);
                setting.shader_blur = EditorGUILayout.TextField("Shader(blur)", setting.shader_blur);
                setting.shader_main_tex = EditorGUILayout.TextField("MainTexture", setting.shader_main_tex);
                EditorGUILayout.Space();
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("目录属性", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.path_panel = EditorGUILayout.TextField("Panel目录", setting.path_panel);
                setting.path_art = EditorGUILayout.TextField("Art目录", setting.path_art);
                EditorGUILayout.Space();
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("过滤", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.path_ban_sprite = EditorGUILayout.TextField("图集过滤", setting.path_ban_sprite);
                setting.path_ban_texture = EditorGUILayout.TextField("Texture过滤", setting.path_ban_texture);
                EditorGUILayout.Space();
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
        }
    }
}
